# app/models/user.py
from peewee import Model, CharField
from flask_login import UserMixin
from app.extensions import db

class User(Model, UserMixin):
    username = CharField(unique=True)
    password = CharField()  # ✅ 确保模型中有 password 字段

    class Meta:
        database = db
